<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="keyword" content="">

    <title>碰撞报告 - 设计院意见</title>

    <!-- Bootstrap core CSS -->
    <link href="__PUBLIC__/css/bootstrap.min.css" rel="stylesheet">
    <link href="__PUBLIC__/css/bootstrap-reset.css" rel="stylesheet">
    <!--external css-->
    <link href="__PUBLIC__/assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
    <!-- Custom styles for this template -->
    <link href="__PUBLIC__/css/style.css" rel="stylesheet">
    <link href="__PUBLIC__/css/style-responsive.css" rel="stylesheet" />
    <!-- new styles-->
      <link href="__PUBLIC__/css/xxxstyle.css" rel="stylesheet" />

      <!-- HTML5 shim and Respond.js IE8 support of HTML5 tooltipss and media queries -->
    <!--[if lt IE 9]>
      <script src="__PUBLIC__/js/html5shiv.js"></script>
      <script src="__PUBLIC__/js/respond.min.js"></script>
    <![endif]-->
  </head>

  <body>

  <section id="container" class="">
      <!--main content start-->
      <section id="main-content">
          <section class="wrapper site-min-height textcenter">
              <!-- page start-->
              <section class="panel collisionReport">
                  <header class="panel-heading"><i class="icon-file"></i>碰撞报告 {$data.id}
                      <span class="pull-right">
                        <button type="button" class="btn btn-default btn-xs" onclick="javascript:window.history.back();return false;"><i class="icon-reply"></i>返回</button>
                      </span>
                  </header>
                  <div class="panel-body">
                      <div class="task-details">
                          <div class="cRtitle">
                              <span class="lSpan"><i class="icon-user"></i>编制人：<b>{$data.uname.name}</b></span>
                              <span class="rSpan">当前状态：<i class="icon-circle-blank"> {$status[$data['status']]}</i></span>
                          </div>
                          <div class="collisionReport-table">
                              <div class="cRtable-row">
                                  <div class="cRow-1 cRtable-bg">项目名称</div>
                                  <div class="cRow-10">{$data.pname.name}</div>
                              </div>
                              <div class="cRtable-row">                                  
                                  <div class="cRow-1 cRtable-bg">楼栋号</div>
                                  <div class="cRow-4">{$data.ban}</div>
                                  <div class="cRow-1 cRtable-bg">楼层</div>
                                  <div class="cRow-4">{$data.floor}</div>
                              </div>
                              <div class="cRtable-row">
                                  <div class="cRow-1 cRtable-bg">专业</div>
                                  <div class="cRow-4">{$major[$data['major']]}</div>
                                  <div class="cRow-1 cRtable-bg">优化点</div>
                                  <div class="cRow-4">{$optimization[$data['optimization']]}</div>
                              </div>
                              <div class="cRtable-row">
                                  <div class="cRow-1 cRtable-bg">轴线位置</div>
                                  <div class="cRow-4 cRowC">{$data.axis}</div>
                                  <div class="cRow-1 cRtable-bg">交于</div>
                                  <div class="cRow-4 cRowC">{$data.axis_turn}</div>
                              </div>
                              <div class="cRtable-row">
                                  <div class="cRow-1 cRtable-bg">碰撞部位</div>
                                  <div class="cRow-4">{$data.position}</div>
                                  <div class="cRow-1 cRtable-bg">碰撞于</div>
                                  <div class="cRow-4">{$data.position_turn}</div>
                              </div>
                          </div>
                      </div>
                     <if condition="$data['imgtype'] eq 1">
                      <div class="pzImg">
                          <div class="cRtitle">BIM模型图</div>
                          <div class="row">
                              <div class="col-lg-6 pzCenter"><img src="{$data.original}" /></div>
                              <div class="col-lg-6 pzCenter"><img src="{$data.original_edit}" /></div>
                          </div>
                      </div>
                      <else/>
                      <div class="pzImg">
                          <div class="cRtitle">BIM模型图</div>
                          <div class="row">
                              <div class="col-lg-12 pzCenter"><img src="{$data.oimg}" /></div>
                          </div>
                      </div>
                      </if>        
                      <div class="task-details mt25">
                          <div class="cRtitle">变动</div>
                          <div class="collisionReport-table">
                              <div class="cRtable-row">
                                  <div class="cRow-8 cRtable-bg">问题描述</div>
                                  <div class="cRow-8 cRtable-bg">建议方案</div>
                              </div>
                              <div class="cRtable-row">
                                  <div class="cRow-8 cRowY">{$data.problem|json_decode}</div>
                                  		<div class="cRow-8 cRowY">{$data.proposal|json_decode}</div>
                              </div>
                          </div>
                      </div>
                      <div class="task-details">
                          <div class="cRtitle">对象</div>
                          <div class="collisionReport-table">
                              <div class="cRtable-row">
                                  <div class="cRow-1 cRtable-bg">造价</div>
                                  <div class="cRow-4 cRowA">{$data.cost}</div>
                                  <div class="cRow-1 cRtable-bg">工期</div>
                                  <div class="cRow-4 cRowB">{$data.time_limit}</div>
                              </div>                              
                          </div>
                      </div>
                 <!--      <div class="form-group">
                          <div class="collisionReport-table">
                              <div class="cRtable-row">
                                  <div class="cRow-9 cRtable-bgZ">甲方意见</div>
                              </div>
                              <div class="cRtable-row">
                                  <div class="cRow-9 cRowY">项目概况、项目构成、户型结构、项目管理知识库、标准工作指引库、计划管理模板及业务参数设置。项目概况、项目构成、户型结构、项目管理知识库、标准工作指引库、计划管理模板及业务参数设置。</div>
                              </div>
                          </div>
                      </div> 
                        <if condition="$otype eq 1 && $re eq ''">
                      <div class="task-details">
                          <div class="cRtitle">
                              <span class="lSpan">设计院意见</span>
                              <span class="rSpan"><i class="icon-user"></i>设计院：<b>XYZZZZ设计院</b></span>
                                <select class="form-control" id="design" name="nail" style="float:right;width:150px;">
                                    <option>请选择提交对象</option>
                                    <option value="14">中国</option>
                                </select>
                                <span class="caret"></span>
                          </div>
                          <textarea class="form-control error" rows="4" id="des"></textarea>
                      </div>
                      <div class="cReport-btn">
                          <button class="btn btn-submit" data-toggle="modal" href="#"  onclick="o_design({$data.id})">提交</button>
                      </div>
                      </if>
                         <if condition="$re neq ''">
                      <div class="task-details">
                          <div class="cRtitle">
                              <span class="lSpan">设计院意见</span>
                              <span class="rSpan"><i class="icon-user"></i>设计院：<b>XYZZZZ设计院</b></span>
                          </div>
                          <textarea class="form-control error" rows="4">
                          	{$re.design|json_decode}
                          </textarea>
                      </div>
                      </if> -->
                        <if condition="$re eq ''">
                        <div class="task-details">
                          <div class="cRtitle">
                              <span class="lSpan">审核意见</span>
                          </div>
                          <textarea class="form-control error" rows="4" id="des"></textarea>
                        </div>
                        <div class="cReport-btn">
                          <button class="btn btn-submit" data-toggle="modal" href="#"  onclick="o_design({$data.id})">提交</button>
                        </div>
                        <else/>                       
                        <div class="task-details">
                          <div class="collisionReport-table">
                              <div class="cRtable-row">
                                  <div class="cRow-9 cRtable-bgZ">我的意见</div>
                              </div>
                              <div class="cRtable-row">
                                  <div class="cRow-9 cRowY">{$re.design|json_decode}</div>
                              </div>
                          </div>
                        </div>
                        </if>
                  </div>              
              </section>
              <!-- page end-->
          </section>
      </section>
      <!--main content end-->
  </section>

    <!-- js placed at the end of the document so the pages load faster -->
    <script src="__PUBLIC__/js/jquery.js"></script>
    <script src="__PUBLIC__/js/jquery-1.8.3.min.js"></script>
    <script src="__PUBLIC__/js/bootstrap.min.js"></script>
    <script class="include" type="text/javascript" src="__PUBLIC__/js/jquery.dcjqaccordion.2.7.js"></script>
    <script src="__PUBLIC__/js/jquery.scrollTo.min.js"></script>
    <script src="__PUBLIC__/js/jquery.nicescroll.js" type="text/javascript"></script>
    <script src="__PUBLIC__/js/jquery.customSelect.min.js" ></script>
	<script type="text/javascript" src="__PUBLIC__/js/layer/layer.js"></script>
    <!--common script for all pages-->
    <script src="__PUBLIC__/js/common-scripts.js"></script>

    <!--new script for this page only-->
   <script>
   function o_design(id){
	   if(!id){
		   layer.msg('id有误，刷新重试',{icon:2});
		    return false;
	   }
	 //  var tid = {$tid};
	   var design = $('#des').val();
	  /*  if(!tid){
		   layer.msg('任务id有误，刷新重试',{icon:2});
		    return false;
	   } */
	   if(design==''){
		   layer.msg('意见不能为空',{icon:2});
		    return false;
	   }
		 $.ajax({
		 		type : 'post',
		 		url : '__URL__/o_design',
		 		data : {oid:id,design:design},
		 		dataType : 'json',
		 		success : function(res){
		 			 if(res.status==0){
						layer.alert(res.info, {icon: 2});
						return;
					 }
		 			 if(!res.errNo){
		 				 layer.msg(res.msg,{icon:1});
		 				 setTimeout("location.reload()",2000);
			          }else{
			        	 layer.msg(res.msg,{icon:2});
			          }
		 		}
		     });
   }
   
   
   </script>

  </body>
</html>
